package cn.kjcoder.springcloud.service;

import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * @author hkj
 * @email 1349091387@qq.com
 * @date 2021/12/24
 * 源码允许修改，并且本人十分乐意有 大佬 来对代码进行 随 意 调 教
 **/
@Component
public class PaymentFallBackService implements PaymentHystrixService {
    @Override
    public String payment_OK(Integer id) {
        return "对方服务器已经宕机";
    }

    @Override
    public String payment_Timeout(Integer id) {
        return "对方服务器已经宕机";
    }
}
